package com.lucifer.cloud.auth.api.impl;

import com.lucifer.cloud.auth.api.UserApi;
import com.lucifer.cloud.auth.model.response.Oauth2UserinfoResult;
import com.lucifer.cloud.auth.service.IOauth2BasicUserService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author lucifer
 * @date 2023/12/21 17:32
 */
@DubboService(version = "1.0.1")
public class UserApiImpl implements UserApi {
    @Resource
    private IOauth2BasicUserService iOauth2BasicUserService;

    @Override
    public Oauth2UserinfoResult getLoginUserInfo(String token) {
        return iOauth2BasicUserService.getLoginUserInfo(token);
    }
}
